package com.service.impl;

import com.dao.IGoodDao;
import com.domain.Good;
import com.service.IGoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GoodService implements IGoodService {

    @Autowired
    private IGoodDao goodDao;

    @Override
    public List<Good> findAllGood() {
        return goodDao.findAllGood();
    }

    @Override
    public Good findOneGood(Good good) {
        return goodDao.findOneGood(good);
    }

    @Override
    public List<Good> findGoodByType(Good good) {
        return goodDao.findGoodByType(good);
    }


}
